﻿<%@ Page Language="C#" Title="已发补助统计" AutoEventWireup="true" MasterPageFile="~/Master/MasterPage_New.master"
    CodeBehind="hospitalAmountSubsidyStatistics.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.ReportHospital.hospitalAmountSubsidyStatistics" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="~/Common/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc2" %>
<%@ Register Src="../../Common/SortControls.ascx" TagName="SortControls" TagPrefix="uc3" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script type="text/javascript">
        function insertHosInfo(hos) {
            var varhosInfo = hos.split('|');
            document.getElementById("ctl00_ContentPlaceHolder1_HidHosId").value = varhosInfo[0];
            document.getElementById("ctl00_ContentPlaceHolder1_txtHosName").value = varhosInfo[1];
        }

        function onclicks() {
            var aid = document.getElementById("ctl00_ContentPlaceHolder1_ddlCity").value;
            showPopWin('选择医院', '/Common/FindHospital.aspx?aid=' + aid, 280, 450, null, true, true)
            //window.open('/Common/FindHospital.aspx?aid=' + aid, '123', 'width=280,height=450,resizable=0,scrollbars=0, status=0, toolbar=0, menubar=0')
        }


        function clears() {
            document.getElementById("ctl00_ContentPlaceHolder1_HidHosId").value = "";
            document.getElementById("ctl00_ContentPlaceHolder1_txtHosName").value ="";
            //window.open('/Common/FindHospital.aspx?aid=' + aid, '123', 'width=280,height=450,resizable=0,scrollbars=0, status=0, toolbar=0, menubar=0')
        } 
    </script>

    <div id="tabnav">
        <ul>
            <li class="active"><a href="javascript:void(0)">已发补助统计</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                <asp:Label ID="labArea" runat="server" Text="所在地区："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlCity" runat="server">
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                医院名称：
                            </td>
                            <td align="left"><%--window.open('/Common/FindHospital.aspx?aid=','123','width=280,height=450,resizable=0,scrollbars=0, status=0, toolbar=0, menubar=0')--%>
                                <asp:TextBox ID="txtHosName" MaxLength="25" runat="server"></asp:TextBox>
                                <input type="button" id="btnHos" value="选择医院" class="btn" style="margin-right: 5px;"
                                    onclick="onclicks()" /><a href="javascript:clears()">清空</a>
                                <input id="HidHosId" type="hidden" name="HidHosId" runat="server" />
                            </td>
                            <td align="right">
                                <asp:Label ID="labPlanTime" runat="server" Text="统计时间："></asp:Label>
                                &nbsp;
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtStratTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"
                                    Width="63px"></asp:TextBox>-<asp:TextBox ID="txtEndTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"
                                        Width="63px"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="100px">
                    <asp:Button ID="btnQuery" runat="server" Text="查询" CssClass="searchbtn" SkinID="search"
                        ToolTip="点击查询符合条件的数据" OnClick="btnQuery_Click" />
                </td>
            </tr>
        </table>
    </div>
    <div>
        <hz:HzButton ID="HzButton4" runat="server" CssClass="btn" Text="金额对比" OnClick="HzButton4_Click" />
        &nbsp;&nbsp;&nbsp;&nbsp;
        <hz:HzButton ID="HzButton5" runat="server" CssClass="btn" Text="基药比率" OnClick="HzButton5_Click" />
        &nbsp;&nbsp;&nbsp;&nbsp;
        <br />
        <asp:Chart ID="hospitalAmountSubsidy" runat="server" Width="745px" BackColor="PowderBlue"
            BackGradientStyle="TopBottom">
            <Legends>
                <asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
                    Docking="Top" Alignment="Far">
                </asp:Legend>
            </Legends>
            <%--<Series>
                <asp:Series Name="Series1">
                </asp:Series>
            </Series>--%>
            <BorderSkin SkinStyle="Sunken"></BorderSkin>
            <ChartAreas>
                <asp:ChartArea Name="hospitalAmountSubsidy" BorderColor="64, 64, 64, 64" BackSecondaryColor="Transparent"
                    BackColor="64, 165, 191, 228" ShadowColor="Transparent">
                    <Position Y="3" Height="92" Width="92" X="2" Auto="true"></Position>
                    <AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                        <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                        <MajorGrid LineColor="64, 64, 64, 64" />
                    </AxisY>
                    <AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                        <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                        <MajorGrid LineColor="64, 64, 64, 64" />
                    </AxisX>
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>
        <asp:HiddenField ID="HidSort" runat="server" />
        <asp:HiddenField ID="HidState" runat="server" />
        <br />
        <hz:HzButton ID="HzButton1" runat="server" OnClick="HzButton1_Click" Text="柱状" CssClass="btn" />
        &nbsp;&nbsp;&nbsp;
        <hz:HzButton ID="HzButton2" runat="server" OnClick="HzButton2_Click" Text="线状" CssClass="btn" />
        &nbsp;&nbsp;&nbsp;
        <hz:HzButton ID="HzButton3" runat="server" OnClick="HzButton3_Click" Text="饼状" CssClass="btn"
            Visible="False" />
    </div>
    <div class="listip">
        <ul>
            <li>说明:<span> 此图为金额统计图,查看所有处方单的金额,基药的金额和补贴的金额.</span></li>
        </ul>
    </div>
</asp:Content>
